#ifndef RGUI_RECTANGLE_HPP
#define RGUI_RECTANGLE_HPP

#include "vec2.hpp"

namespace rgui
{
	
class Rectangle
{
public:
									Rectangle(const rgui::vec2f &position, const rgui::vec2f &size);

	const rgui::vec2f&				getPosition();
	const rgui::vec2f&				getSize();

	void							setPosition(const rgui::vec2f &position);
	void							setSize(const rgui::vec2f &size);

	// Check if the given position is inside the rectangle
	bool							contains(const rgui::vec2f &position);
private:
	rgui::vec2f mPosition, mSize;
};

}

#endif